package com.itheima.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import com.itheima.dao.LoginDao;
import com.itheima.service.LoginService;

@Service
public class LoginServiceImpl implements LoginService {

    @Autowired
    private LoginDao loginDao;

    @Override
    public User login(String name, String pwd) {
        return loginDao.getUserById(name, pwd);
    }
}
